package com.lechuang.ssgou.view.activity.beheaver;

import android.content.Context;
import android.support.design.widget.CoordinatorLayout;
import android.support.v7.widget.RecyclerView;
import android.util.AttributeSet;
import android.view.View;

/**
 * 作者：li on 2017/11/13 17:50
 * 邮箱：961567115@qq.com
 * 修改备注:
 */
public class RecycleViewBehaver extends CoordinatorLayout.Behavior<RecyclerView> {
    public RecycleViewBehaver(Context context, AttributeSet attrs) {
        super(context, attrs);
    }

    @Override
    public boolean layoutDependsOn(CoordinatorLayout parent, RecyclerView child, View dependency) {
        return dependency instanceof RecyclerView;
    }

    @Override
    public boolean onDependentViewChanged(CoordinatorLayout parent, RecyclerView child, View dependency) {

        return super.onDependentViewChanged(parent, child, dependency);
    }
}
